<?php
require_once(dirname(__FILE__). '/common/app.php');
require_once dirname(__FILE__). '/common/Image.php';
require_once dirname(__FILE__). '/common/DB.php';
	
?>
<link rel="stylesheet" href="/css/index.css" type="text/css" />

<div id="sidebar">
	<div class="site-menu-box box">
 		<div class="site-menu-user-box box"></div>
 	</div>
</div>


<div class="c_list">
<?php 

$sql = "select image from team";
$ret = DB::GetQueryResult($sql, FALSE);
foreach ($ret as $r)
{
	foreach ($r as $one)
	{
		$srcFile = "static/" . $one;
		$destFile = "static/" . dirname($one) . '/' . basename($one, ".jpg") . '_mini.gif';
		$out = Image::convert($srcFile,$destFile,$width=100,$height=150,Image::MODE_SCALE);
		?>
		<div class="c_li"><img src=<?php echo $destFile?>></div>
		<?php 
	}
}
?>		
</div>